using System;
using System.Collections.Generic;
using System.Text;
using DTO.AP;

namespace DAO.AP
{
    public class APBatchDAO
    {
        // man` hinh` 3
        public void InsertAPBatch(APBatch apBatch)
        {
            DataProvider provider = new DataProvider();
            provider.Open();
            string command = "insert into AP_Batch(Type, ReceiptName, QtyTotal) values ("
                + apBatch.Type + "," + apBatch.ReceiptName + "," + apBatch.TotalQty + ")";

            provider.ExcuteNonQuery(command);
            provider.Close();
        }
    }
}
